package edu.xjtu.jih.changepwd;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface ChpwdDao {

    @Select("select count(u_id) from user where u_id = #{u_id} and u_passord = #{u_opwd}")
    int checkPwd(ChpwdDto dto);

    @Update("update user set u_passord = #{u_pwd} where u_id = #{u_id}")
    void updatePwd(ChpwdDto dto);
}
